# x = 1
# if x > 2
# 	puts "X is grater than 2"
# elsif x < 2 and x > 0
# 	puts "X is 1"
# else 
# 	puts "I cant guess the number"
# end

# puts "x is not 2" if x != 2

# i = 0
# num = 5

# begin 
# 	puts "Inside the loop i = #{i}"
# 	i += 1
# 	puts "i is not 3" unless i == 3
# end while i < num

# for i in 0..5
# 	puts "value of local variable is #{i}"
# end

# x = "Justin"

# puts x.include?("Just")

# x = "john, charles, matt, joe"
# y = ""

# puts x.split(",")

# puts "Y is empty" if y.empty?

# a = ["justin", "david", "nina", "crystal", "joel"]
# puts a.shuffle

# x = {"first_name" => "justin", "last_name" => "stone"}

# puts x["first_name"]

# x = {:first_name => "justin", :last_name => "stone"}

# puts x[:first_name]

# def test
# 	puts "You are in the method"
# 	yield
# 	puts "You are again back to the method"
# 	yield
# end

# test {puts "You are in the block"}

# def test
# 	puts "You are in the method"
# 	yield(5)
# 	puts "You are again back to the method"
# 	yield(100)
# end

# test {|i| puts "You are in the block #{i}"}

# (1..4).collect {|i| i*i}

x = rand(1..4)

puts x